<?php
html::printPath(
    array(
        'person.form-title' => 'admin/person/all',
        $person['first_name'] . ' ' . $person['last_name'] => 'admin/person/display?id=' . $person['id'],
        'person.registrationList-title' => ''
    ),
    'person.registrationList-desc'
);
$msg->printMessages();

function cancelledRowClass($viRegistration) {
    if ($viRegistration['cancelled_at']) {
        return 'cancelledRegRow';
    }
    return '';
}

if (count($registrationList) + count($viRegistrationList) == 0) {
    echo text::getEscaped('myRegistration.noRegistration');
}
else {
    $registrationList = registrationHelper::mergeSortRegistrationLists($viRegistrationList, $registrationList);
    registrationHelper::printMergedRegistrationLists($registrationList,
            '/admin/viRegistration/display', '/admin/registration/display', TRUE);
}
